package com.daka.dao;

import com.daka.entity.Activity;
import com.daka.mybatis.SQLMapper;
import com.daka.vo.request.AddressActVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author beliveli on 2016/3/31 0031.
 */
@Repository(value = "activityMapper")
@SQLMapper
public interface ActivityMapper {

    Activity selectById(int id);

    List<Activity> selectByGroup(int groupId);

    List<Activity> selectPageByGroup(@Param("groupId") Integer groupId, @Param("activityName") String activityName, @Param("pageIndex") Integer pageIndex, @Param("pageSize") Integer pageSize);

    int selectCountByGroup(@Param("groupId") Integer groupId, @Param("activityName") String activityName);

    List<Activity> selectByUser(int userId);

    List<Activity> selectAll();

    List<Activity> selectByAddressTemp(AddressActVo vo);
}
